<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <h1>用户tpl</h1>
    {{n1}}
    {{roles}}
    {{roles.1}}
    <br>
    {% for item in roles %}
        {{item}}
    {% endfor %}
    <strong>for 循环</strong>
    <br>
    {{ user_info.name }}
    <br>

    {% for k in user_info.keys %}
    {{k}}
    {% endfor %}
    <strong>拿到全部key</strong>
    <br>

    {% for k,v in user_info.items %}
    {{k}}:{{v}}
    {% endfor %}
     <strong>拿到全部key和vlues</strong>

    <br>
    {% if n1 == "hanchao" %}
        <strong>if 语句</strong>
    {% elif n1 == "hanchao2" %}
        <strong>elif 语句</strong>
    {% endif %}
</body>
</html>
